<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>{if isset($kupay_compay['seo']) && !empty($kupay_compay['seo']) }{$kupay_compay['seo']}{else/}工资条{/if}</title>
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/kupay/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/addons/kupay/css/infolist.css"/>
    <script type="text/javascript" src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
    <script src="__CDN__/assets/libs/fastadmin-layer/dist/layer.js"></script>
</head>
<body>
<div class="page ">
    {if empty($list)}
    <div class="kongs">
        <img src="__CDN__/assets/addons/kupay/img/queshi.png" class="queshi">
        <div>暂无数据哦</div>
    </div>
    {else/}
            <span class="group2 ">
                <select id="year">
                    {foreach name="yearlist" item="vo" key="k"}
                    <option {if $vo==$year}selected{/if}>{$vo}年</option>
                    {/foreach}
                </select>
            </span>
    <div class="bd3 flex-col">

        {foreach name="list" item="vo" key="k"}
        <a href="{:url('infodetails',['id'=>$vo['id']])}" class="group3 flex-row justify-between">
            <span class="word2">{$vo.times2}月&nbsp;-&nbsp;{$vo.types}</span>
            <div class="mod1 flex-col"></div>
        </a>
        {/foreach}

    </div>
    {/if}
    <div class="bd5 ">
        <div class="box3 ">
            <div class="ImageText1 ">
                <span class="box4 "></span>
                <div class="TextGroup1">
                    <a href="#" class="info5">首页</a>
                </div>
            </div>
            <div class="ImageText2 ">
                <a href="{:url('user')}" ><span class="bd6 "></span></a>
                <div class="TextGroup2 ">
                    <a href="{:url('user')}" class="info6">我的</a>
                </div>
            </div>
        </div>
    </div>
</div>
<form action="{:url('infolist')}" method="get" id="forms">
    <input value="{$year}" id="year2" name="year" type="hidden">
</form>
<script>
    $(document).on("change", "#year", function () {
        var dates = $(this).val();
        $("#year2").val(dates);
        $("#forms").submit();
    });
</script>
</body>
</html>
